<?php

namespace Admin\Entity;

class Author {

    public $author;
    public $bookBarcode;
    public function getBookBarcode() {
        return $this->bookBarcode;
    }

    public function setBookBarcode($bookBarcode) {
        $this->bookBarcode = $bookBarcode;
    }

        public function getAuthor() {
        return $this->author;
    }

    public function setAuthor($author) {
        $this->author = $author;
    }

    public function setDataAuthor($data) {
        $this->author = (isset($data['author'])) ? $data['author'] : null;
        $this->bookBarcode = (isset($data['bookBarcode'])) ? $data['bookBarcode'] : null;
    }

    public function getArrayCopy() {
        return get_object_vars($this);
    }

}

?>
